<template>
  <div class="recommend">
    <div v-for="item in recommends" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <span>{{item.title}}</span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommends :{
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style scoped>
.recommend{
  display: flex;
  padding: 1vh 0;
  box-shadow: 0 1.5vh 0 0 #EEEEEE;
  margin-bottom: 1.5vh;
}
.recommend-item{
  flex: 1;
  padding: 3vw;
  text-align: center;
  font-size: 14px;
}
.recommend-item img{
  width: 100%;
  margin-bottom: 1vh;
}
</style>